package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {
    //权限增加
    public void add(Permission permission);

    //分页查询
    PageResult pageQuery(QueryPageBean queryPageBean);

    //查询权限
    Permission findById(Integer id);

    //编辑权限
    void edit(Permission permission);

    //删除
    void delete(Integer id);

    List<Permission> findAll();
}

